//
// Created by Administrator on 2021/08/06.
//

#ifndef INC_2_4HYBRID_UI_DESIGN_MAINWINDOW_H
#define INC_2_4HYBRID_UI_DESIGN_MAINWINDOW_H

#include <QMainWindow>
#include <QLabel>
#include <QSpinBox>
#include <QFontComboBox>
#include <QProgressBar>


QT_BEGIN_NAMESPACE
namespace Ui { class mainwindow; }
QT_END_NAMESPACE

class mainwindow : public QMainWindow {
Q_OBJECT

public:
    explicit mainwindow(QWidget *parent = nullptr);

    ~mainwindow() override;

private slots:
    void on_actFontBlod_triggered(bool checked);
    void on_actFontItalic_triggered(bool checked);
    void on_actFontUnder_triggered(bool checked);

    void on_textEdit_copyAvailable(bool b);
    void on_textEdit_selectionChanged();

    void on_spinFontSize_valueChanged(int aFontSize);
    void on_comboFont_currentIndexChanged(const QString &arg1);

private:
    Ui::mainwindow *ui;

    QLabel *fLabCurFile;
    QProgressBar *progressBar;
    QSpinBox *spinFontSize;
    QFontComboBox *comboFont;

    void iniUi();
    void initSignalSlots();
};


#endif //INC_2_4HYBRID_UI_DESIGN_MAINWINDOW_H
